package jmine.tec.database.pack;

import bancosys.tec.exception.AbstractException;
import bancosys.tec.exception.MessageCreator;

/**
 * Exception jogado caso ocorra algum erro durante o empacotamento.
 * 
 * @author lundberg
 */
public class PackException extends AbstractException {

    /**
     * Construtor
     * 
     * @param creator creator
     * @param arguments arguments
     */
    public PackException(MessageCreator creator, Object... arguments) {
        super(creator.create(arguments));
    }

    /**
     * Construtor
     * 
     * @param creator creator
     * @param cause cause
     * @param arguments arguments
     */
    public PackException(MessageCreator creator, Throwable cause, Object... arguments) {
        super(creator.create(arguments), cause);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getBundleBaseName() {
        return "jmine-tec-services-messages";
    }
}
